<?php
/**
 * Hoffman Framework
 *
 * LICENSE
 *
 * This source file is subject to the GNU LGPL 2.1 license that is bundled
 * with this package in the file license.txt.
 * It is also available through the world-wide-web at this URL:
 * http://creativecommons.org/licenses/LGPL/2.1
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to annop@thaicyberpoint.com so we can send you a copy immediately.
 *
 * @package    Hoffman
 * @author     Ford AntiTrust
 * @copyright  Copyright (c) 2008 Ford AntiTrust (http://www.thaicyberpoint.com/ford/blog)
 * @since      Version Rv 0.2
 * @license    http://creativecommons.org/licenses/LGPL/2.1
 *             GNU LGPL 2.1
 * @filesource
 */

if (!defined('INDEX'))
    die('No direct script access allowed.');

/**
 * Configurations
 *
 * Configuration file
 *
 * @package     Hoffman
 * @subpackage  application
 * @category    Configuration
 * @author      Ford AntiTrust
 * @version     SVN: $Id: Configurations.php 158 2009-07-18 05:19:42Z annop.s@gmail.com $
 * @link        http://www.thaicyberpoint.com/ford/blog/hmf
 */

$config['production'] = array(

    'title'         =>'Title',
    'webhost'       =>'http://localhost',
    'use_clean_url' =>true,
    'base_url'      =>'/hmf',

    'acl'           =>true,

    'cache.view.head'  =>true,

    'authen.use'     =>false,
    'authen.adapter' =>'session',

    'arg_separator' =>';',

    'logs.debug'    =>true,
    'logs.warning'  =>true,
    'logs.info'     =>true,
    'logs.notice'   =>true,
    'logs.critical' =>true,
    'logs.alert'    =>true,
    'logs.emergency'=>true,
    'logs.memuse'   =>true,

    'function.helpers.default'          => true,
    'function.helpers.extended'         => false,
    'function.helpers.extended.load'    => array(
                                               'default'
                                           ),

    'routing.cache'          => true,

    'language.use'              => false,
    'language.locale'           =>'th_TH',
    'language.character_set'    =>'UTF-8',

    'session.autoload'             => false,
    'session.default.namespace'    =>'hmf',
    'session.authen.namespace'     =>'userhmf',

    'timezone.default'       => 'Asia/Bangkok',

    'database'=> array(
    	'default'=>array(
            'host'          => '127.0.0.1',
            'username'      => 'root',
            'password'      => '1234',
            'dbname'        => 'album',
            'adapter'       => 'Mysqli',
            'charset'       => 'utf8',
            'collation'     => 'utf8_general_ci'
        ),

        'readonly'=>array(
            'host'          => '127.0.0.1',
            'username'      => 'root',
            'password'      => '1234',
            'dbname'        => 'album',
            'adapter'       => 'mysqli',
            'charset'       => 'utf8',
            'collation'     => 'utf8_general_ci'
        )
    )
);

$config['development'] = array(
    'database'=> array(
    	'default'=>array(
            'host'          => '127.0.0.1',
            'username'      => 'root',
            'password'      => '1234',
            'dbname'        => 'album',
            'adapter'       => 'mysqli',
            'charset'       => 'utf8',
            'collation'     => 'utf8_general_ci'
        )
    )
);

$config['test'] = array(
    'database'=> array(
    	'default'=>array(
            'host'          => '127.0.0.1',
            'username'      => 'root',
            'password'      => '1234',
            'dbname'        => 'album',
            'adapter'       => 'mysqli',
            'charset'       => 'utf8',
            'collation'     => 'utf8_general_ci'
        )
    )
);